import Axios from 'axios'

export function DataBase(config){
    const serve = Axios.create({
        baseURL:"http://localhost:3000/",
        timeout:3000
    })
    serve.interceptors.request.use(data => {
        return data
    },err => {
        return err
    })

    serve.interceptors.response.use(data => {
        return data
    },err => {
        return err
    })

    return serve(config)
}